package com.shijimo.system.controller;

import com.shijimo.server.domain.Test;
import com.shijimo.server.service.TestService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Dream_飞翔
 * @date 2021/10/3
 * @time 17:19
 * @email 1072876976@qq.com
 */
@RestController
public class TestController {
    @Resource
    private TestService testService;

    @RequestMapping("/test")
    public String test() {
        return "世纪末的架构师";
    }

    @RequestMapping("/testList")
    public List<Test> list() {
        return testService.list();
    }
}
